package cn.nuist.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;

public class Customer {
    private int customerID;
    private String customerName;
    private String customerPhone;
    private String membershipLevel;
    private Date registerDate;

    public Customer(int customerID, String customerName, String customerPhone, String membershipLevel, Date registerDate) {
        this.customerID = customerID;
        this.customerName = customerName;
        this.customerPhone = customerPhone;
        this.membershipLevel = membershipLevel;
        this.registerDate = registerDate;
    }

    public Customer(String customerName, String customerPhone, String membershipLevel, Date registerDate) {
        this.customerName = customerName;
        this.customerPhone = customerPhone;
        this.membershipLevel = membershipLevel;
        this.registerDate = registerDate;
    }

    public Customer() {
    }

    public int getCustomerID() {
        return customerID;
    }

    public void setCustomerID(int customerID) {
        this.customerID = customerID;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public String getMembershipLevel() {
        return membershipLevel;
    }

    public void setMembershipLevel(String membershipLevel) {
        this.membershipLevel = membershipLevel;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "customerID=" + customerID +
                ", customerName='" + customerName + '\'' +
                ", customerPhone='" + customerPhone + '\'' +
                ", membershipLevel='" + membershipLevel + '\'' +
                ", registerDate=" + registerDate +
                '}';
    }
}